﻿package com.colorsstudio.defence.ConstantValues
{
	import com.colorsstudio.defence.Levels.Level;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.net.SharedObject;
	import flash.utils.Dictionary;
	import idv.cjcat.fenofsm.FSMachine;
	import org.flintparticles.threeD.actions.Move;
	
	/**
	 * ...
	 * @author wuzhida
	 */
	public class Constants
	{
		public static const SCREEN_WIDTH:Number = 720;
		public static const SCREEN_HEIGHT:Number = 480;
		public static var fsm:FSMachine = new FSMachine("prepareBeforeGame");
		public static var main:MovieClip = null;
		public static var CURRENT_SCENE:Level = null;
		public static var levels:Dictionary = new Dictionary();
		public static const DEFENCER_WIDTH:Number = 40;
		public static const DEFENCER_HEIGHT:Number = 40;
		public static const NUM_WIDTH = 18;
		public static const NUM_HEIGHT = 12;
		public static const GRID_WIDTH = 16;
		public static const GRID_HEIGHT = 9;
		public static const gameData:SharedObject = SharedObject.getLocal("colorsStudioDefenceGameData1");	//用于记录游戏的持久数据(如成就解锁)
		public static var TIME_SCALE = 1;
		public static var POPUPWIN_OFFSET:int = 20;	
		
		
		//==============
		//下面是第一关的特定数据
		//==============
		public static var S1_ENEMY_COUNT = 112;
		public static const S1_ST_NODE_X = 0;
		public static const S1_ST_NODE_Y = 4;
		public static const S1_EN_NODE_X = 15;
		public static const S1_EN_NODE_Y = 2;
		
		//敌人间隔
		public static const S1_ENEMY_INTERVAL = 1000;

	}
}